package boardgamer.common.client.testing;

import android.graphics.Canvas;
import android.graphics.RectF;
import boardgamer.common.client.Display;

/**
 * @author garysoed
 */
public class MockDisplay implements Display {
  
  public RectF boundingRect = new RectF();
  public boolean isDrawn = false;
  
  @Override
  public void draw(Canvas canvas) {
    this.isDrawn = true;
  }

  @Override
  public void setBoundingRect(RectF boundingRect) {
    this.boundingRect = new RectF(boundingRect);
  }

  @Override
  public RectF getBoundingRect() {
    return new RectF(boundingRect);
  }
}
